package cn.zhaoyuening.zhaocloud.common.bean;

import java.util.HashSet;
import java.util.Set;
/**
 * 服务提供者向服务注册中心注册服务
 * @author 赵岳宁
 *
 */
public class CloudServiceRegisterBean {
	//服务注册者的服务暴露端口
	private Integer port;
	//服务集合
	private Set<CloudServiceBean> serviceBeanSet;
	//告知注册中心为注册服务操作
	private final String type = "registry";
	
	public CloudServiceRegisterBean(Integer port, Set<CloudServiceBean> serviceBeanSet) {
		this.port = port;
		this.serviceBeanSet = serviceBeanSet;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public Set<CloudServiceBean> getServiceBeanSet() {
		return serviceBeanSet;
	}

	public void setServiceBeanSet(Set<CloudServiceBean> serviceBeanSet) {
		this.serviceBeanSet = serviceBeanSet;
	}
	
	public String getType() {
		return type;
	}
	
	
}
